//
//  MasterViewController.h
//  tv3rss
//
//  Created by Job Search on 01/08/14.
//  Copyright (c) 2014 responsfabrikken. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

#import "RSSParser.h"
#import "RSSPersistenceService.h"

#define NewsFeed @"http://www.tv3sport.dk/feed/?post_type=news"

@class DetailViewController;


@interface MasterViewController : UITableViewController <NSFetchedResultsControllerDelegate>

@property (strong, nonatomic) DetailViewController      *detailViewController;

@property (strong, nonatomic) NSFetchedResultsController *fetchedResultsController;
@property (strong, nonatomic) NSManagedObjectContext    *managedObjectContext;

//news data stuff
@property (nonatomic, strong) RSSParser                 *parser;
@property (nonatomic, strong) NSMutableArray            *feeds;

@property (strong, nonatomic) IBOutlet UITableView      *tableView;

//persistence stuff
@property (nonatomic, strong) RSSPersistenceService     *rssPersistence;



-(IBAction)     removeDataFile:(id)sender;
-(void)         refreshData;

@end
